/**
 * @author        leishanfeng <1628316216@qq.com>
 * @date          2023-07-07 14:25:07
 * Copyright © YourCompanyName All rights reserved
 */
import service from '@/utils/request'
//救援队伍通过depId查询
export const rescueTeamGetByDepId = (params) => {
    return service({
        url: "/rescueTeam/getByDepId",
        method: 'get',
        params
    })
}
//救援队伍保存
export const rescueTeamSaveOrUpdate = (data) => {
    return service({
        url: "/rescueTeam/saveOrUpdate",
        method: 'post',
        data
    })
}
//救援队伍列表
export const rescueTeamList = (params) => {
    return service({
        url: "/rescueTeam/list",
        method: 'get',
        params
    })
}
// 防护目标通过depId查询
export const protectTargetGetByDepId = (params) => {
    return service({
        url: "/protectTarget/getByDepId",
        method: 'get',
        params
    })
}
//防护目标保存或更新
export const protectTargetSaveOrUpdate = (data) => {
    return service({
        url: "/protectTarget/saveOrUpdate",
        method: 'post',
        data
    })
}
// 避难场所通过depId查询
export const refugeGetByDepId = (params) => {
    return service({
        url: "/refuge/getByDepId",
        method: 'get',
        params
    })
}
// 避难场所保存或更新
export const refugeSaveOrUpdate = (data) => {
    return service({
        url: "/refuge/saveOrUpdate",
        method: 'post',
        data
    })
}
// 物资库id查询
export const storeInfoGetById = (params) => {
    return service({
        url: "/storeInfo/getById",
        method: 'get',
        params
    })
}
// 删除物资库
export const storeInfoDelById = (params) => {
    return service({
        url: "/storeInfo/deleteById",
        method: 'post',
        params
    })
}
//物资库列表
export const storeInfoList = (params) => {
    return service({
        url: "/storeInfo/list",
        method: 'get',
        params
    })
}
//物资库保存或更新
export const storeInfoSaveOrUpdate = (data) => {
    return service({
        url: "/storeInfo/saveOrUpdate",
        method: 'post',
        data
    })
}
// 机构树
export const organizationListTree = () => {
    return service({
        url: "/organization/listTree",
        method: 'get',
    })
}
//新增成员
export const uNew = (data) => {
    return service({
        url: "/u/new",
        method: 'post',
        data
    })
}
// 救援队伍成员
export const idaasFindUsersByDepId = (params) => {
    return service({
        url: "/idaas/findUsersByDepId",
        method: 'get',
        params
    })
}
// 主管单位
export const orgBeyong = (data) => {
    return service({
        url: "/org/beyong",
        method: 'post',
        data
    })
}
// 
export const orgDetail = (data) => {
    return service({
        url: "/org/detail",
        method: 'post',
        data
    })
}
//添加
export const adlist = (data) => {
    return service({
        url: "/ad/list",
        method: 'post',
        data
    })
}
// 队伍列表保存
export const uUd = (data) => {
    return service({
        url: "/u/ud",
        method: 'post',
        data
    })
}
//删除
export const uDelete = (data) => {
    return service({
        url: "/u/delete",
        method: 'post',
        data
    })
}
// 查询成员
export const idaasFindUsersByPhone = (params) => {
    return service({
        url: "/idaas/findUsersByPhone",
        method: 'get',
        params
    })
}
export const storeInfoGetByDepId=(params) => {
    return service({
        url: "/storeInfo/getByDepId",
        method: 'get',
        params
    })
}
// 仓库详情
export const storeInfoGetStoreInfo =(params) => {
    return service({
        url: "/storeInfo/getStoreInfo",
        method: 'get',
        params
    })
}